package po

/*
   @author:zhongyang
   @date:2023/4/5
   @description:问题集数据库对象
*/

type QuestionPO struct {
	QuestionId string `gorm:"column:question_id;type:varchar(36);primary_key;comment:主键id" json:"question_id"`
	Question   string `gorm:"column:question;type:varchar(50);comment:问题;NOT NULL" json:"question"`
	Answer     string `gorm:"column:answer;type:text;comment:解答;NOT NULL" json:"answer"`
	PlanId     string `gorm:"column:plan_id;type:varchar(36);comment:计划id;NOT NULL" json:"plan_id"`
	UserId     string `gorm:"column:user_id;type:varchar(36);comment:用户id;NOT NULL" json:"user_id"`
	TaskDate   string `gorm:"column:task_date;type:varchar(10);comment:对应待办日期;NOT NULL" json:"task_date"`
}

func (m *QuestionPO) TableName() string {
	return "mine_question"
}
